<?php

use App\Models\GoodAttribute;
use App\Services\SteamDtClientService;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});


Route::get('category', function (SteamDtClientService $steamDtClientService) {
   $result =  $steamDtClientService->get('https://sdt-api.ok-skins.com/user/ranking/v1/attribute/730?timestamp=1744959033982');
   $data = $result['data'];
   $types = $data[0];
//   foreach ($types as )
//    GoodAttribute::query()->create([
//        'exterior' => $dd['exterior'],
//        'quality' => $dd['quality'],
//        'rarity' => $dd['rarity'],
//        'type' => $dd['type'],
//        'weapon' => $dd['weapon'],
//    ]);
   dd($types);
});

// php artisan make:migration create_good_attributes_table

// categories

// exteriors

// qualities

// rarities

// types

// weapons
